package com.lab.system.domain;

import com.lab.common.annotation.Excel;
import com.lab.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 实验反馈对象 biz_lab_feedback
 *
 * @author cf
 * @date 2025-02-15
 */
public class Feedback extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Long id;

    /**
     * 实验预约关联id
     */
    @Excel(name = "实验预约关联id")
    private Long reservationId;

    /**
     * 实验课程
     */
    @Excel(name = "实验课程")
    private String courseName;

    /**
     * 用户id
     */
    @Excel(name = "用户id")
    private Long userId;

    /**
     * 姓名
     */
    @Excel(name = "姓名")
    private String userName;

    /**
     * 反馈内容
     */
    @Excel(name = "反馈内容")
    private String feedbackText;

    /**
     * 用户评分（1到5分）
     */
    @Excel(name = "用户评分", readConverterExp = "1=到5分")
    private Long rating;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setReservationId(Long reservationId) {
        this.reservationId = reservationId;
    }

    public Long getReservationId() {
        return reservationId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setFeedbackText(String feedbackText) {
        this.feedbackText = feedbackText;
    }

    public String getFeedbackText() {
        return feedbackText;
    }

    public void setRating(Long rating) {
        this.rating = rating;
    }

    public Long getRating() {
        return rating;
    }

    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    @Override
    public String toString() {
        return "Feedback{" +
                "id=" + id +
                ", reservationId=" + reservationId +
                ", courseName='" + courseName + '\'' +
                ", userId=" + userId +
                ", userName='" + userName + '\'' +
                ", feedbackText='" + feedbackText + '\'' +
                ", rating=" + rating +
                '}';
    }
}
